//
//  BIDPayRecordCell.m
//  zkwy
//
//  Created by mal on 2016/11/13.
//  Copyright © 2016年 mal. All rights reserved.
//

#import "BIDPayRecordCell.h"

@implementation BIDPayRecordCell
@synthesize dateLabel;
@synthesize amountLabel;
@synthesize methodLabel;
@synthesize houseCodeLabel;

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)prepareImgViewWithPayMethod:(PAY_TYPE)payMethod
{
    NSString *imgName = @"";
    switch(payMethod)
    {
        case PAY_APP:
        {
            imgName = @"payment_method_mobile.png";
        }
            break;
        case PAY_ATM:
        {
            imgName = @"payment_method_self.png";
        }
            break;
        case PAY_POS:
        {
            imgName = @"payment_method_pos.png";
        }
            break;
        case PAY_CASH:
        {
            imgName = @"payment_method_cash.png";
        }
            break;
    }
    [_payMethodTypeImgView setImage:[UIImage imageNamed:imgName]];
}

@end
